<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎页-修改密码</title>
<link href="__PUBLIC__/admin/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="__PUBLIC__/admin/js/jquery.js"></script>

<link href="__PUBLIC__/validform/Validform.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/validform/Validform_v5.3.2.js"></script>
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="{:U('index/welcome')}">首页</a></li>
			<li><a href="#">修改密码</a></li>
		</ul>
    </div>
    
    <div class="formbody">
    
		<div class="formtitle"><span>修改密码</span></div>

		<form name="myform" id="myform" action="{:U('index/passwordadmin')}" method="post">
			<ul class="forminfo">
				<li><label>用户名</label><input name="username" id="username" type="text" class="dfinput" readonly value="{$admininfo.username}" /></li>
				<li><label>原密码</label><input name="info[oldpassword]" id="oldpassword" type="password" class="dfinput" datatype="*5-15" nullmsg="请输入原密码！" errormsg="密码范围在5~15位之间！" maxlength="20" /><i class="Validform_checktip"></i></li>
				<li><label>新密码</label><input name="info[newpassword]" id="newpassword" type="password" class="dfinput" datatype="*5-15" nullmsg="请输入新密码！" errormsg="密码范围在5~15位之间！" maxlength="20" /><i class="Validform_checktip"></i></li>
				<li><label>&nbsp;</label><input name="loginbtn" type="submit" class="btn" value="确认保存"/></li>
			</ul>
		</form>
    
    </div>

	<script>
	$(function(){
		$("#myform").Validform({
			//tiptype:2
			tiptype:function(msg,o,cssctl){
				var objtip=o.obj.siblings(".Validform_checktip");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}
		});
	}); 
	</script>
</body>

</html>
